package com.ruoyi.biz.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 biz_order
 * 
 * @author ruoyi
 * @date 2022-02-18
 */
public class BizOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 交易号 */
    @Excel(name = "交易号")
    private String tradeNo;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 折扣金额 */
    @Excel(name = "折扣金额")
    private BigDecimal discountAmount;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal paymentAmount;

    /** 邮包总体积 */
    @Excel(name = "邮包总体积")
    private BigDecimal totalVolume;

    /** 邮包总重量 */
    @Excel(name = "邮包总重量")
    private BigDecimal totalWeight;

    /** 收货人 */
    @Excel(name = "收货人")
    private String addressee;

    /** 快递地址 */
    @Excel(name = "快递地址")
    private String postAddress;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 货运方式 1:船运 2:空运 */
    @Excel(name = "货运方式 1:船运 2:空运")
    private String transportType;

    /** 订单状态 0:待付款 1:运输中 2:已完成 */
    @Excel(name = "订单状态 0:待付款 1:运输中 2:已完成")
    private Integer stauts;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recevingTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setTradeNo(String tradeNo) 
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo() 
    {
        return tradeNo;
    }
    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setPaymentAmount(BigDecimal paymentAmount) 
    {
        this.paymentAmount = paymentAmount;
    }

    public BigDecimal getPaymentAmount() 
    {
        return paymentAmount;
    }
    public void setTotalVolume(BigDecimal totalVolume) 
    {
        this.totalVolume = totalVolume;
    }

    public BigDecimal getTotalVolume() 
    {
        return totalVolume;
    }
    public void setTotalWeight(BigDecimal totalWeight) 
    {
        this.totalWeight = totalWeight;
    }

    public BigDecimal getTotalWeight() 
    {
        return totalWeight;
    }
    public void setAddressee(String addressee) 
    {
        this.addressee = addressee;
    }

    public String getAddressee() 
    {
        return addressee;
    }
    public void setPostAddress(String postAddress) 
    {
        this.postAddress = postAddress;
    }

    public String getPostAddress() 
    {
        return postAddress;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setTransportType(String transportType) 
    {
        this.transportType = transportType;
    }

    public String getTransportType() 
    {
        return transportType;
    }
    public void setStauts(Integer stauts) 
    {
        this.stauts = stauts;
    }

    public Integer getStauts() 
    {
        return stauts;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setRecevingTime(Date recevingTime) 
    {
        this.recevingTime = recevingTime;
    }

    public Date getRecevingTime() 
    {
        return recevingTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderNo", getOrderNo())
            .append("tradeNo", getTradeNo())
            .append("orderAmount", getOrderAmount())
            .append("discountAmount", getDiscountAmount())
            .append("paymentAmount", getPaymentAmount())
            .append("totalVolume", getTotalVolume())
            .append("totalWeight", getTotalWeight())
            .append("addressee", getAddressee())
            .append("postAddress", getPostAddress())
            .append("phone", getPhone())
            .append("transportType", getTransportType())
            .append("stauts", getStauts())
            .append("payTime", getPayTime())
            .append("recevingTime", getRecevingTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
